The error while I got while working with rails version 3.0.7 is
Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (no such file to load — active_record/connection_adapters/mysql2_adapter)
Solution:-
In GemFile change
gem ‘mysql2’ to gem ‘mysql2’, ‘< 0.3’
and bundle it.
for klairvoyant
Where are GemFile?
I only see Gemfile and Gemfile.lock
Thank you
You want to edit the gemfile. inside the file you will find
gem ‘mysql2’ change that to gem ‘mysql2’, ‘< 0.3'
zOMG thanks, man
Hi ,
I am a rooke in ROR… plz can you tell me is this the gem file found in the mysql2 gem folder??
Content of gem file :
source :rubygems
gemspec
i am not able to find gem ‘mysql2′ in this…
Also plz can you tell me how to run bundle command.
I am using Ubuntu 11.04 | rails 3.0.7
1) here the Gemfile means file found in the top directory( which will created while creating rails application) . it’s a text file and you want to edit content of the file.
2) In NetBeans IDE you will get the command in the right button click on project name